package com.xiaoxu.gateway;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/**
 * @author xiaoxu
 * @version 1.0
 * @description 网关启动类
 * @date 2023/1/20 12:18
 */
@SpringBootApplication
@Slf4j
public class GateWayApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(GateWayApplication.class, args);
        log.info("\n"+"\t\t\t\t******************************************"+"\n"+"\t\t\t\t**\t贝壳学堂- {} 模块项目启动成功" +
                        "\t**"+"\n\t\t\t\t**\t\t\t贝壳学堂-版本v1.0测试版\t\t**"+"\n\t\t\t\t**\t贝壳学堂-系统配置模块端口号: {}" +
                        "\t\t**"+"\n\t\t\t\t******************************************"
                ,ctx.getEnvironment().getProperty("spring.application.name")
                ,ctx.getEnvironment().getProperty("server.port"));
    }
}
